package com.geostart.constructionland.system.service;

import com.geostar.constructionland.common.entity.response.ExtJsAjaxResponse;
import com.geostar.constructionland.common.entity.statistics.StatisticsProfile;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "constructionland-statistics")
public interface StatisticsProfileFeignClient {

    @RequestMapping(value = "/statisticsProfile/list", method = RequestMethod.POST)
    ExtJsAjaxResponse list(@RequestParam(value = "page") int pageNo, @RequestParam(value = "limit") int pageNum,  @RequestParam(value="query_param_statistics_name",required=false)String query_param_statistics_name);

    @RequestMapping(value = "/statisticsProfile/delete", method = RequestMethod.POST)
    ExtJsAjaxResponse delete(@RequestParam("id") String id);

    @RequestMapping(value = "/statisticsProfile/add", method = RequestMethod.POST, consumes = "application/json")
    ExtJsAjaxResponse add(@RequestBody StatisticsProfile statisticsProfile);

    @RequestMapping(value = "/statisticsProfile/update", method = RequestMethod.POST, consumes = "application/json")
    ExtJsAjaxResponse update(@RequestBody StatisticsProfile statisticsProfile);

    @RequestMapping(value = "/statisticsProfile/executeStatement", method = RequestMethod.POST)
    ExtJsAjaxResponse getStatistic(@RequestParam(value = "uniqueTaskId")String uniqueTaskId, @RequestParam(value = "ywid")String ywid);
}
